// ==UserScript==
// @name         TianfuhaoBi
// @namespace    http://bi.tianfuhao.com.cn:25639/
// @version      v0.0.1
// @description  天福号BI样式纠正助手!
// @author       silence
// @match        *://bi.tianfuhao.com.cn:25639/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=tampermonkey.net
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    // Your code here...
    let css = `div.bi-center-adapt-layout.bi-border.bi-table-center-adapt-layout .first-element+div { width: auto !important; }
    div.bi-design-detail-region.bi-region-border.bi-center-adapt-layout.bi-card.bi-table-center-adapt-layout.ui-droppable .first-element+div+div{
    width: auto !important;
    }
    div.bi-single.bi-tip.bi-toast.bi-message-animate.toast-success.bi-horizontal-adapt-layout.bi-table-center-adapt-layout.bi-message-enter .first-element+div {
       width: auto !important;
    }
    `,
    head = document.head || document.getElementsByTagName('head')[0],
    style = document.createElement('style');

    head.appendChild(style);

    style.type = 'text/css';
    if (style.styleSheet){
        // This is required for IE8 and below.
        style.styleSheet.cssText = css;
    } else {
        style.appendChild(document.createTextNode(css));
    }
})();
